package org.dromara.business.service;

import org.dromara.business.domain.LocationGg;
import org.dromara.business.domain.vo.LocationGgVo;
import org.dromara.business.domain.bo.LocationGgBo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * CRUD地理位置Service接口
 *
 * @author Lion Li
 * @date 2025-01-08
 */
public interface LocationGgService extends IService<LocationGg> {

    /**
     * 查询CRUD地理位置
     */
    LocationGgVo queryById(Long id);

    /**
     * 查询CRUD地理位置列表
     */
    TableDataInfo<LocationGgVo> queryPageList(LocationGgBo bo, PageQuery pageQuery);

    /**
     * 查询CRUD地理位置列表
     */
    List<LocationGgVo> queryList(LocationGgBo bo);

    /**
     * 新增CRUD地理位置
     */
    Boolean insertByBo(LocationGgBo bo);

    /**
     * 修改CRUD地理位置
     */
    Boolean updateByBo(LocationGgBo bo);

    /**
     * 校验并批量删除CRUD地理位置信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
